package lyq.spec.edu.practical;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class MyReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        //Toast.makeText(context,"开机启动成功",Toast.LENGTH_LONG).show();
        Intent intent1 = new Intent(context, MyService.class);
        context.startService(intent1);
    }
}
